<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome.css">
    <style>
        body,
        html {
            margin: 0;
            padding: 0;
            background-color:aquamarine;
        }

        .content {
            margin: 0 auto;
            width: 660px;
            height: 190px;
        }
        .background{
            float: left;
           
            position: relative;
            width: 200px;
            height: 150px;
            box-sizing: border-box;
           
        }
        .background img{
            width: 100%;
            height: 100%;
        }
        .background .hover{
            box-sizing:border-box;
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 256, 0, 0.3);
            padding:10px 30px 10px;
            left: 0;
            top:0;
            opacity:0;
        }
        .background:hover .hover{
             animation-name: flip;
            animation-duration: 1200ms;
            animation-timing-function: linear;
            opacity: 1;
        }
        @keyframes flip {
            0%{
                transform: perspective(400px) rotate3d(0,1,0,90deg);
                animation-timing-function: ease-in;/*缓动函数*/
                opacity: 0;
            }
            40%{
                transform: perspective(400px) rotate3d(0,1,0,-20deg);
                animation-timing-function: ease-in;/*缓动函数*/

            }
            60%{
                transform: perspective(400px) rotate3d(0,1,0,10deg);
                animation-timing-function: ease-in;/*缓动函数*/
                opacity: 1;
            }
            80%{
                transform: perspective(400px) rotate3d(0,1,0,-5deg);
                animation-timing-function: ease-in;/*缓动函数*/
                
            }
            100%{
                transform: perspective(400px);
                animation-timing-function: ease-in;/*缓动函数*/
                
            }
        }
        #span{
            width: 20px;
            height: 20px;
        }
    </style>
</head>

<body>
    <div class="content">
        <div class="background"><img src="img/1.jpg" alt="">
            <div class="hover">
                <h2>williamson
                </h2>
                <p>hover effect style
                </p>
                <a class="fa fa-search-plus"></a>
                <a class="fa fa-search-plus"></a>
            </div>
        </div>
       <div class="background"><img src="img/2.jpg" alt="">
            <div class="hover">
                <h2>williamson
                </h2>
                <p>hover effect style
                </p>
                <a class="fa fa-search-plus"></a>
                <a class="fa fa-search-plus"></a>
            </div>
        </div>
       <div class="background"><img src="img/3.jpg" alt="">
            <div class="hover">
                <h2>williamson
                </h2>
                <p>hover effect style
                </p>
                <span class="fa fa-search-plus"></span>
                <span class="fa fa-search-plus"></span>
            </div>
        </div>
    </div>
</body>

</html>